package routes

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func InitWebRouter(r *gin.Engine)  {
	r.GET("/", func(context *gin.Context) {
		var body = make(map[string]string)
		body["msg"] = "running"
		body["code"] = "0"
		context.JSON(http.StatusOK, body)
	})

	v1 := r.Group("/api/v1")
	v1.GET("/", func(context *gin.Context) {
		context.String(http.StatusOK, "service running")
	})
}
